/**
 * @Description:
 * @Author bianpengfei
 * @create 2021/6/25 15:38
 */
import React, { PureComponent } from 'react'
import PropTypes from 'prop-types'
import context from './context'

class B extends PureComponent {
  constructor(props) {
    super(props)
    this.state = {}
  }

  static contextType = context

  render() {
    return (
      <div className={'b'}>
        <div>B：用户名：{this.context.userName}</div>
        {this.props.children}
      </div>
    )
  }
}

B.propTypes = {}

export default B
